package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Runningcamera;
import com.grad.why.studentsystem.domain.RunningcameraExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RunningcameraMapper {
    int countByExample(RunningcameraExample example);

    int deleteByExample(RunningcameraExample example);

    int deleteByPrimaryKey(Integer runningcameraid);

    int insert(Runningcamera record);

    int insertSelective(Runningcamera record);

    List<Runningcamera> selectByExample(RunningcameraExample example);

    int updateByExampleSelective(@Param("record") Runningcamera record, @Param("example") RunningcameraExample example);

    int updateByExample(@Param("record") Runningcamera record, @Param("example") RunningcameraExample example);

    int checkCameraIsRunning(@Param("cameraid") Integer cameraid);

    void deleteRunningCameras();
}